package georah.map.layers
{

	import georah.map.MapEvent;
	import georah.map.providers.FeatureCollection;

	/**
	 *
	 * @author yuanm
	 */
	public class FeatureLayer extends MapLayer
	{
		private var _provider:IFeatureLayerProvider=new FeatureCollection();

		public final function get provider():IFeatureLayerProvider
		{
			return _provider;
		}

		public final function set provider(value:IFeatureLayerProvider):void
		{
			_provider=value;
		}

		override protected function map_changeHandler(event:MapEvent):void
		{
			super.map_changeHandler(event);

			provider.update(map);
		}

	}
}
